package cn.cvs.service.uservice;

import cn.cvs.dao.sysUser.SysUserMapper;
import cn.cvs.pojo.SysUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
@Service("UserService")
public class UserServiceImpl implements UserService{
    @Autowired
    private SysUserMapper sysUserMapper;

    public SysUserMapper getSysUserMapper() {
        return sysUserMapper;
    }

    public void setSysUserMapper(SysUserMapper sysUserMapper) {
        this.sysUserMapper = sysUserMapper;
    }

    @Override
    public int AddSysUserResult(SysUser sysUser) {
        return this.sysUserMapper.AddSysUserResult(sysUser);
    }

    @Override
    public int deleteSysUser(int id) {
        return this.sysUserMapper.deleteSysUser(id);
    }

    @Override
    public int updateSysUser(SysUser sysUser) {
        return this.sysUserMapper.updateSysUser(sysUser);
    }


}
